package com.market.dao.jpa;

import org.springframework.stereotype.Repository;

import com.market.dao.FeedBackDao;
import com.market.domain.FeedBack;


@Repository("feedBackDao")
public class FeedBackDaoJpa extends GenericDaoJpa<FeedBack, Long> implements
		FeedBackDao {
	public FeedBackDaoJpa() {
		super(FeedBack.class);
	}

	public void remove(FeedBack object) {
		if (super.findById(object.getId()) == null) {
			log.debug(this.getClass() + " Feed back with id " + object.getId()
					+ " is not found, can not be removed");
		} else {
			log.debug(this.getClass() + " Feed back  with id " + object.getId()
					+ " is found, will be removed");
			super.removeById(object.getId());
		}

	}
}
